package com.pcs.utils;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import sun.rmi.runtime.Log;

@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        System.out.println("拦截器！！！！");
        registry.addInterceptor(new HttpInterceptor()).addPathPatterns("/**");
//        registry.addInterceptor(new HeaderTokenInterceptor()).addPathPatterns("/**");
    }
}
